package map;

import java.util.ArrayList;
import tile.Tile;

public class Location
{
    private FloorTile floor;
    private ArrayList<Tile> top;

    public Location(FloorTile tile) {
        floor = tile;
        top = new ArrayList<Tile>();
    }

    public FloorTile getFloor() {
        return floor;
    }

    public Tile getTop() {
        return top.get(top.size() - 1);
    }

    public void addTop(Tile tile) {
        top.add(tile);
    }

    public void addTile(int i, Tile tile) {
        top.add(i, tile);
    }

    public Tile getTile(int index) {
        return top.get(index);
    }
}
